package com.ruike.alisurface.ui.answerQuestion.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Author: voodoo
 * CreateDate: 2020/07/24 024 01:50 下午
 * Description: 答题详情回传对象
 */
public class ResultAnswerBean implements Serializable {

    /**
     * data : {"can_out":true,"out_slot":1,"slotTypeId":21001,"order_id":"1552130612368916480","total_question":5,"success_question":5,"error_question":0,"details":[{"question_id":"432432411111064","question_content":"我是第八题","question_index":1,"is_right":true,"answer_content":[{"sort":1,"option_content":"我是第一个选项"},{"sort":2,"option_content":"我是第二个选项"}]},{"question_id":"4324324324248064","question_content":"我是第五题","question_index":2,"is_right":true,"answer_content":[{"sort":1,"option_content":"我是第一个选项"},{"sort":2,"option_content":"我是第二个选项"}]},{"question_id":"43243267657064","question_content":"我是第七题","question_index":3,"is_right":true,"answer_content":[{"sort":1,"option_content":"我是第一个选项"},{"sort":2,"option_content":"我是第二个选项"}]},{"question_id":"1549284299549851648","question_content":"我是第一题","question_index":4,"is_right":true,"answer_content":[{"sort":1,"option_content":"我是选项A"}]},{"question_id":"1549572832764248064","question_content":"我是第二题","question_index":5,"is_right":true,"answer_content":[{"sort":1,"option_content":"我是选项A"}]}]}
     * code : 0
     * msg : 答题成功
     * sendData : 2022-07-27 11:15:49
     */

    int code;
    String msg;
    String sendData;
    DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getSendData() {
        return sendData;
    }

    public void setSendData(String sendData) {
        this.sendData = sendData;
    }

    public static class DataBean implements Serializable {

        /**
         * can_out : true
         * out_slot : 1
         * slotTypeId : 21001
         * order_id : 1552130612368916480
         * total_question : 5
         * success_question : 5
         * error_question : 0
         * details : [{"question_id":"432432411111064","question_content":"我是第八题","question_index":1,"is_right":true,"answer_content":[{"sort":1,"option_content":"我是第一个选项"},{"sort":2,"option_content":"我是第二个选项"}]},{"question_id":"4324324324248064","question_content":"我是第五题","question_index":2,"is_right":true,"answer_content":[{"sort":1,"option_content":"我是第一个选项"},{"sort":2,"option_content":"我是第二个选项"}]},{"question_id":"43243267657064","question_content":"我是第七题","question_index":3,"is_right":true,"answer_content":[{"sort":1,"option_content":"我是第一个选项"},{"sort":2,"option_content":"我是第二个选项"}]},{"question_id":"1549284299549851648","question_content":"我是第一题","question_index":4,"is_right":true,"answer_content":[{"sort":1,"option_content":"我是选项A"}]},{"question_id":"1549572832764248064","question_content":"我是第二题","question_index":5,"is_right":true,"answer_content":[{"sort":1,"option_content":"我是选项A"}]}]
         */
        boolean can_out;
        int out_slot;
        int slotTypeId;
        String order_id;
        int total_question;
        int success_question;
        int error_question;
        List<DetailsBean> details;

        public boolean isCan_out() {
            return can_out;
        }

        public void setCan_out(boolean can_out) {
            this.can_out = can_out;
        }

        public int getOut_slot() {
            return out_slot;
        }

        public void setOut_slot(int out_slot) {
            this.out_slot = out_slot;
        }

        public int getSlotTypeId() {
            return slotTypeId;
        }

        public void setSlotTypeId(int slotTypeId) {
            this.slotTypeId = slotTypeId;
        }

        public String getOrder_id() {
            return order_id;
        }

        public void setOrder_id(String order_id) {
            this.order_id = order_id;
        }

        public int getTotal_question() {
            return total_question;
        }

        public void setTotal_question(int total_question) {
            this.total_question = total_question;
        }

        public int getSuccess_question() {
            return success_question;
        }

        public void setSuccess_question(int success_question) {
            this.success_question = success_question;
        }

        public int getError_question() {
            return error_question;
        }

        public void setError_question(int error_question) {
            this.error_question = error_question;
        }

        public List<DetailsBean> getDetails() {
            return details;
        }

        public void setDetails(List<DetailsBean> details) {
            this.details = details;
        }

        public static class DetailsBean implements Serializable {
            /**
             * question_id : 432432411111064
             * question_content : 我是第八题
             * question_index : 1
             * is_right : true
             * answer_content : [{"sort":1,"option_content":"我是第一个选项"},{"sort":2,"option_content":"我是第二个选项"}]
             */

            String question_id;
            String question_content;
            int question_index;
            boolean is_right;
            List<AnswerContentBean> answer_content;

            public String getQuestion_id() {
                return question_id;
            }

            public void setQuestion_id(String question_id) {
                this.question_id = question_id;
            }

            public String getQuestion_content() {
                return question_content;
            }

            public void setQuestion_content(String question_content) {
                this.question_content = question_content;
            }

            public int getQuestion_index() {
                return question_index;
            }

            public void setQuestion_index(int question_index) {
                this.question_index = question_index;
            }

            public boolean isIs_right() {
                return is_right;
            }

            public void setIs_right(boolean is_right) {
                this.is_right = is_right;
            }

            public List<AnswerContentBean> getAnswer_content() {
                return answer_content;
            }

            public void setAnswer_content(List<AnswerContentBean> answer_content) {
                this.answer_content = answer_content;
            }

            public static class AnswerContentBean implements Serializable {
                /**
                 * sort : 1
                 * option_content : 我是第一个选项
                 */

                int sort;
                String option_content;

                public int getSort() {
                    return sort;
                }

                public void setSort(int sort) {
                    this.sort = sort;
                }

                public String getOption_content() {
                    return option_content;
                }

                public void setOption_content(String option_content) {
                    this.option_content = option_content;
                }

                @Override
                public String toString() {
                    return "AnswerContentBean{" +
                            "sort=" + sort +
                            ", option_content='" + option_content + '\'' +
                            '}';
                }
            }

            @Override
            public String toString() {
                return "DetailsBean{" +
                        "question_id='" + question_id + '\'' +
                        ", question_content='" + question_content + '\'' +
                        ", question_index=" + question_index +
                        ", is_right=" + is_right +
                        ", answer_content=" + answer_content +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "can_out=" + can_out +
                    ", out_slot=" + out_slot +
                    ", slotTypeId=" + slotTypeId +
                    ", order_id='" + order_id + '\'' +
                    ", total_question=" + total_question +
                    ", success_question=" + success_question +
                    ", error_question=" + error_question +
                    ", details=" + details +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "ResultAnswerBean{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", sendData='" + sendData + '\'' +
                ", data=" + data +
                '}';
    }
}
